import request from '@/utils/request'
// import qs from 'qs'

/**
 * 员工管理-工装管理-获取列表
 * url:'/hr/employee/clothes/list'
 * method:GET
 * @Header Authorization: 登录接口返回的token
 * @Query params:{
    page: 1, // 当前页数
    size: 20// 每页个数
 * }
 * @returns {*}
 */
export const getUniformListAPI = (params = {}) => {
  return request.get('/hr/employee/clothes/list', {
    params
  })
}

/**
 * 员工管理-工装管理-新建工装
 * url:'/hr/employee/clothes'
 * method:POST
 * @Header Authorization: 登录接口返回的token
 * @Query params:{}
 * @returns {*}
 */
export const createUniformAPI = (params = {}) => {
  return request.post('/hr/employee/clothes', params)
}

/**
 * 员工管理-工装管理-修改工装
 * url:'/hr/employee/clothes'
 * method:PUT
 * @Header Authorization: 登录接口返回的token
 * @Query params:{}
 * @returns {*}
 */
export const updateUniformAPI = (params = {}) => {
  return request.put('/hr/employee/clothes', params)
}

/**
 * 员工管理-工装管理-删除工装
 * url:'/hr/employee/clothes/${id}'
 * method:DELETE
 * @Header Authorization: 登录接口返回的token
 * @Query params:{}
 * @returns {*}
 */
export const deleteUniformAPI = (params = {}) => {
  return request.delete(`/hr/employee/clothes/${params.id}`, params)
}
